
	var guitarEl = document.querySelector('.content--instrument > .guitar');
	function init() {
		// Preload all sounds and initialize the instruments.
		MIDI.loadPlugin({
			soundfontUrl: './soundfont/',
			instruments: ['acoustic_guitar_nylon'],
			onsuccess: function() {		
				// Initialize the Guitar.
				new Guitar(guitarEl);
			}
		});
	}

	init();
